package com.rc.saas.tenant.mapper.operator;

import com.rc.saas.tenant.common.base.BaseMapper;
import com.rc.saas.tenant.model.operator.RcOperator;
import com.rc.saas.tenant.model.operator.RcOperatorExample;

import java.util.List;

import com.rc.saas.tenant.search.account.WithdrawMagSearch;
import com.rc.saas.tenant.search.operator.OperatorSearch;
import com.rc.saas.tenant.vo.account.WithDrawManagerDetailVo;
import com.rc.saas.tenant.vo.account.WithDrawManagerVo;
import com.rc.saas.tenant.vo.elec.ElecCountVo;
import com.rc.saas.tenant.vo.operator.RcOperatorVo;
import org.apache.ibatis.annotations.Param;

public interface RcOperatorMapper extends BaseMapper<Long, RcOperator, RcOperatorExample> {

    List<RcOperator> loadOperator(OperatorSearch operatorSearch);

    List listOperator(String operatorName);

    List<RcOperator> selectOperators(String tenantCode);

    RcOperator selectOperatorApplyByOperator(String operator);

    List<WithDrawManagerVo> listWithdrawManagerVo(@Param("memberIdAndName") String memberIdAndName, @Param("memberType") String memberType);

    List<WithDrawManagerDetailVo> listWithdrawManagerDetailVo(WithdrawMagSearch search);

    Long insertReturnId(RcOperator rcOperator);

    ElecCountVo loadElecCount(Long operatorId);

    RcOperatorVo loadOperatorIds(String roleType, String loginName);

}